package com.server.Example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * The type Login example.
 */
public class LoginExample {
    /**
     * The Order by clause.
     */
    protected String orderByClause;

    /**
     * The Distinct.
     */
    protected boolean distinct;

    /**
     * The Ored criteria.
     */
    protected List<Criteria> oredCriteria;

    /**
     * Instantiates a new Login example.
     */
    public LoginExample() {
        oredCriteria = new ArrayList<>();
    }

    /**
     * Sets order by clause.
     *
     * @param orderByClause the order by clause
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * Gets order by clause.
     *
     * @return the order by clause
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * Sets distinct.
     *
     * @param distinct the distinct
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * Is distinct boolean.
     *
     * @return the boolean
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * Gets ored criteria.
     *
     * @return the ored criteria
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * Or.
     *
     * @param criteria the criteria
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * Or criteria.
     *
     * @return the criteria
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * Create criteria criteria.
     *
     * @return the criteria
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * Create criteria internal criteria.
     *
     * @return the criteria
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * Clear.
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * The type Generated criteria.
     */
    protected abstract static class GeneratedCriteria {
        /**
         * The Criteria.
         */
        protected List<Criterion> criteria;

        /**
         * Instantiates a new Generated criteria.
         */
        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        /**
         * Is valid boolean.
         *
         * @return the boolean
         */
        public boolean isValid() {
            return criteria.size() > 0;
        }

        /**
         * Gets all criteria.
         *
         * @return the all criteria
         */
        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        /**
         * Gets criteria.
         *
         * @return the criteria
         */
        public List<Criterion> getCriteria() {
            return criteria;
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         */
        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         * @param value     the value
         * @param property  the property
         */
        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        /**
         * Add criterion.
         *
         * @param condition the condition
         * @param value1    the value 1
         * @param value2    the value 2
         * @param property  the property
         */
        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        /**
         * And user login id is null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginIdIsNull() {
            addCriterion("User_Login_id is null");
            return (Criteria) this;
        }

        /**
         * And user login id is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginIdIsNotNull() {
            addCriterion("User_Login_id is not null");
            return (Criteria) this;
        }

        /**
         * And user login id equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdEqualTo(Integer value) {
            addCriterion("User_Login_id =", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdNotEqualTo(Integer value) {
            addCriterion("User_Login_id <>", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdGreaterThan(Integer value) {
            addCriterion("User_Login_id >", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("User_Login_id >=", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdLessThan(Integer value) {
            addCriterion("User_Login_id <", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIdLessThanOrEqualTo(Integer value) {
            addCriterion("User_Login_id <=", value, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginIdIn(List<Integer> values) {
            addCriterion("User_Login_id in", values, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginIdNotIn(List<Integer> values) {
            addCriterion("User_Login_id not in", values, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginIdBetween(Integer value1, Integer value2) {
            addCriterion("User_Login_id between", value1, value2, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login id not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginIdNotBetween(Integer value1, Integer value2) {
            addCriterion("User_Login_id not between", value1, value2, "userLoginId");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address is null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressIsNull() {
            addCriterion("User_Login_Ip_v4_address is null");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressIsNotNull() {
            addCriterion("User_Login_Ip_v4_address is not null");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressEqualTo(String value) {
            addCriterion("User_Login_Ip_v4_address =", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressNotEqualTo(String value) {
            addCriterion("User_Login_Ip_v4_address <>", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressGreaterThan(String value) {
            addCriterion("User_Login_Ip_v4_address >", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressGreaterThanOrEqualTo(String value) {
            addCriterion("User_Login_Ip_v4_address >=", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressLessThan(String value) {
            addCriterion("User_Login_Ip_v4_address <", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressLessThanOrEqualTo(String value) {
            addCriterion("User_Login_Ip_v4_address <=", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressLike(String value) {
            addCriterion("User_Login_Ip_v4_address like", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressNotLike(String value) {
            addCriterion("User_Login_Ip_v4_address not like", value, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressIn(List<String> values) {
            addCriterion("User_Login_Ip_v4_address in", values, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressNotIn(List<String> values) {
            addCriterion("User_Login_Ip_v4_address not in", values, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressBetween(String value1, String value2) {
            addCriterion("User_Login_Ip_v4_address between", value1, value2, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login ip v 4 address not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginIpV4AddressNotBetween(String value1, String value2) {
            addCriterion("User_Login_Ip_v4_address not between", value1, value2, "userLoginIpV4Address");
            return (Criteria) this;
        }

        /**
         * And user login address is null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginAddressIsNull() {
            addCriterion("User_Login_address is null");
            return (Criteria) this;
        }

        /**
         * And user login address is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginAddressIsNotNull() {
            addCriterion("User_Login_address is not null");
            return (Criteria) this;
        }

        /**
         * And user login address equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressEqualTo(String value) {
            addCriterion("User_Login_address =", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressNotEqualTo(String value) {
            addCriterion("User_Login_address <>", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressGreaterThan(String value) {
            addCriterion("User_Login_address >", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressGreaterThanOrEqualTo(String value) {
            addCriterion("User_Login_address >=", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressLessThan(String value) {
            addCriterion("User_Login_address <", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressLessThanOrEqualTo(String value) {
            addCriterion("User_Login_address <=", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressLike(String value) {
            addCriterion("User_Login_address like", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address not like criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginAddressNotLike(String value) {
            addCriterion("User_Login_address not like", value, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginAddressIn(List<String> values) {
            addCriterion("User_Login_address in", values, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginAddressNotIn(List<String> values) {
            addCriterion("User_Login_address not in", values, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginAddressBetween(String value1, String value2) {
            addCriterion("User_Login_address between", value1, value2, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login address not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginAddressNotBetween(String value1, String value2) {
            addCriterion("User_Login_address not between", value1, value2, "userLoginAddress");
            return (Criteria) this;
        }

        /**
         * And user login time is null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginTimeIsNull() {
            addCriterion("User_Login_time is null");
            return (Criteria) this;
        }

        /**
         * And user login time is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserLoginTimeIsNotNull() {
            addCriterion("User_Login_time is not null");
            return (Criteria) this;
        }

        /**
         * And user login time equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeEqualTo(Date value) {
            addCriterion("User_Login_time =", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeNotEqualTo(Date value) {
            addCriterion("User_Login_time <>", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeGreaterThan(Date value) {
            addCriterion("User_Login_time >", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("User_Login_time >=", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeLessThan(Date value) {
            addCriterion("User_Login_time <", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserLoginTimeLessThanOrEqualTo(Date value) {
            addCriterion("User_Login_time <=", value, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginTimeIn(List<Date> values) {
            addCriterion("User_Login_time in", values, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserLoginTimeNotIn(List<Date> values) {
            addCriterion("User_Login_time not in", values, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginTimeBetween(Date value1, Date value2) {
            addCriterion("User_Login_time between", value1, value2, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user login time not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserLoginTimeNotBetween(Date value1, Date value2) {
            addCriterion("User_Login_time not between", value1, value2, "userLoginTime");
            return (Criteria) this;
        }

        /**
         * And user info is null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserInfoIsNull() {
            addCriterion("User_info is null");
            return (Criteria) this;
        }

        /**
         * And user info is not null criteria.
         *
         * @return the criteria
         */
        public Criteria andUserInfoIsNotNull() {
            addCriterion("User_info is not null");
            return (Criteria) this;
        }

        /**
         * And user info equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoEqualTo(Integer value) {
            addCriterion("User_info =", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info not equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoNotEqualTo(Integer value) {
            addCriterion("User_info <>", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info greater than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoGreaterThan(Integer value) {
            addCriterion("User_info >", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info greater than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoGreaterThanOrEqualTo(Integer value) {
            addCriterion("User_info >=", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info less than criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoLessThan(Integer value) {
            addCriterion("User_info <", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info less than or equal to criteria.
         *
         * @param value the value
         * @return the criteria
         */
        public Criteria andUserInfoLessThanOrEqualTo(Integer value) {
            addCriterion("User_info <=", value, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserInfoIn(List<Integer> values) {
            addCriterion("User_info in", values, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info not in criteria.
         *
         * @param values the values
         * @return the criteria
         */
        public Criteria andUserInfoNotIn(List<Integer> values) {
            addCriterion("User_info not in", values, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserInfoBetween(Integer value1, Integer value2) {
            addCriterion("User_info between", value1, value2, "userInfo");
            return (Criteria) this;
        }

        /**
         * And user info not between criteria.
         *
         * @param value1 the value 1
         * @param value2 the value 2
         * @return the criteria
         */
        public Criteria andUserInfoNotBetween(Integer value1, Integer value2) {
            addCriterion("User_info not between", value1, value2, "userInfo");
            return (Criteria) this;
        }
    }

    /**
     * The type Criteria.
     */
    public static class Criteria extends GeneratedCriteria {
        /**
         * Instantiates a new Criteria.
         */
        protected Criteria() {
            super();
        }
    }

    /**
     * The type Criterion.
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        /**
         * Gets condition.
         *
         * @return the condition
         */
        public String getCondition() {
            return condition;
        }

        /**
         * Gets value.
         *
         * @return the value
         */
        public Object getValue() {
            return value;
        }

        /**
         * Gets second value.
         *
         * @return the second value
         */
        public Object getSecondValue() {
            return secondValue;
        }

        /**
         * Is no value boolean.
         *
         * @return the boolean
         */
        public boolean isNoValue() {
            return noValue;
        }

        /**
         * Is single value boolean.
         *
         * @return the boolean
         */
        public boolean isSingleValue() {
            return singleValue;
        }

        /**
         * Is between value boolean.
         *
         * @return the boolean
         */
        public boolean isBetweenValue() {
            return betweenValue;
        }

        /**
         * Is list value boolean.
         *
         * @return the boolean
         */
        public boolean isListValue() {
            return listValue;
        }

        /**
         * Gets type handler.
         *
         * @return the type handler
         */
        public String getTypeHandler() {
            return typeHandler;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition the condition
         */
        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param typeHandler the type handler
         */
        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition the condition
         * @param value     the value
         */
        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param secondValue the second value
         * @param typeHandler the type handler
         */
        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        /**
         * Instantiates a new Criterion.
         *
         * @param condition   the condition
         * @param value       the value
         * @param secondValue the second value
         */
        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}